﻿<%@ Page Language="C#" MasterPageFile="~/Manager.master" AutoEventWireup="true" CodeFile="AddDistributionCompany.aspx.cs" Inherits="Manager_DistributionCompany_AddDistributionCompany" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div align="center">
        <table id="tblBodyMain" style="width: 90%" border="1" cellpadding="2" cellspacing="2"
            class="tbl_Comon-Search">
            <tr>
                <td class="td_Title" style="width: 158px">
                    Tên nhà cung cấp</td>
                <td align="left" class="td_Control">
                    <asp:TextBox ID="txtName" runat="server" Width="92%" ValidationGroup="grpAdd"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                        ErrorMessage="Nhập tên nhà cung cấp">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="td_Title" style="width: 158px">
                    Địa chỉ</td>
                <td align="left" class="td_Control">
                    <asp:TextBox ID="txtAddr" runat="server" ValidationGroup="grpAdd" Width="92%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td_Title" style="width: 158px">
                    Điện thoại</td>
                <td align="left" class="td_Control">
                    <asp:TextBox ID="txtPhone" runat="server" ValidationGroup="grpAdd" Width="92%"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone"
                        CssClass="valid_common" ErrorMessage="Số điện thoại phải là số" ValidationExpression="^\d+$">*</asp:RegularExpressionValidator></td>
            </tr>
            <tr id="trCatProp" runat="server">
                <td class="td_Title" style="width: 158px">
                    Email</td>
                <td align="left" class="td_Control">
                    <asp:TextBox ID="txtEmail" runat="server" ValidationGroup="grpAdd" Width="92%"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                        CssClass="valid_common" ErrorMessage="Nhập chính xác địa chỉ Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>
            </tr>
            <tr runat="server">
                <td class="td_Title" style="width: 158px">
                    Mã số thuế</td>
                <td align="left" class="td_Control">
                    <asp:TextBox ID="txtTaxNo" runat="server" ValidationGroup="grpAdd" Width="92%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td_Title" nowrap="nowrap" style="width: 158px">
                    Ghi chú</td>
                <td align="left" class="td_Control">
                    <asp:TextBox ID="txtNote" runat="server" Height="57px" TextMode="MultiLine" ValidationGroup="grpAdd"
                        Width="92%"></asp:TextBox></td>
            </tr>

            <tr>
                <td class="cssManage_left" colspan="2">
                </td>
            </tr>
            <tr>
                <td style="width: 158px">
                </td>
                <td style="height: 24px" align="left">
                    <asp:Button ID="btnSave" runat="server" Text="Bảo lưu" CssClass="cssButton" OnClick="btnSave_Click" />
                    <asp:Button ID="btnCancel" runat="server" CssClass="cssButton" Text="Trở về" OnClick="btnCancel_Click"
                        Width="80px" CausesValidation="False" /></td>
            </tr>
        </table>
    </div>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />




</asp:Content>
